package com.literature.search.core.entity;

import cn.easyes.annotation.IndexId;
import cn.easyes.annotation.IndexName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: DangKong
 * @Date: 2023/3/2 21:43
 * @Description: 存在ES中的父对象
 */



@Data
@ApiModel("存储在ES的文件对象")
@IndexName
public class EsFileObject implements Serializable {

    private static final long serialVersionUID = 1L;


    @IndexId
    private String id;


    @ApiModelProperty("文件名")
    private String fileName;

    @ApiModelProperty("首页缩略图ID")
    private String thumbId;

    @ApiModelProperty("上传时间")
    private String uploadDate;

    @ApiModelProperty("上传人")
    private String uploadUser;

    @ApiModelProperty("点赞数")
    private Integer like;

    @ApiModelProperty("收藏数")
    private Integer collect;

    @ApiModelProperty("下载数")
    private Integer download;

    @ApiModelProperty("浏览数")
    private Integer view;

    @ApiModelProperty("每页文本内容嵌套类型")
    private List<EsPageObject> pageContents;

    @ApiModelProperty("ES中每一个图片对象嵌套类型")
    private List<EsPicObject> picContents;


    @ApiModelProperty("是否是英文文档")
    private Boolean isEnglish;

}